package com.zx.service;

import com.zx.bean.Enterprise;
import com.zx.bean.Express;
import com.zx.dao.EnterpriseDao;
import com.zx.dao.impl.EnterpriseDaoImpl;

import java.util.List;

public class EnterpriseService {
    private static EnterpriseDao enterpriseDao=new EnterpriseDaoImpl();
    public boolean insert(Enterprise enterprise){
        return enterpriseDao.insert(enterprise);
    }
    public static List<Enterprise> findAll(boolean limit, int offset, int pageNumber) {
        return enterpriseDao.findAll(limit,offset,pageNumber);
    }
}
